package com.editso.haier.base;

import com.editso.haier.entity.Vip;

/**
 * 基础会员
 * */
public enum Vips {
    VIP(1, "普通会员", ""),
    VIP_ADVANCED(2, "高级会员", "要充钱");

    private final Integer code;
    private final String name;
    private final String description;

    Vips(Integer code, String name, String description) {
        this.code = code;
        this.name = name;
        this.description = description;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public Vip getVip(){
        return new Vip(code, name, description);
    }
}
